--[[

LibDataBroker details.

]]

LibStub:GetLibrary("LibDataBroker-1.1"):NewDataObject(LCB_ID, {
	type = "launcher",
	-- Left Click	- Set Buttons
	-- Right Click	- Open Config GUI
	OnClick = function(_, msg)
		if msg == "LeftButton" then
			LCB_GetConsumables();
			LCB_UpdateHealthButton();
			LCB_UpdateManaButton();
			LCB_UpdateBandageButton();
			LCB_UpdateHealthPotButton();
			LCB_UpdateManaPotButton();
		elseif msg == "RightButton" then
			InterfaceOptionsFrame_OpenToCategory(LCB_GUI);
		end
	end,

	-- Use the Heavy Windwool Bandage for the icon...
	icon = "Interface\\Icons\\INV_Misc_Bandage_Windwool_Heavy",

	OnTooltipShow = function(tooltip)
		if not tooltip or not tooltip.AddLine then
			return;
		end
		LCB_SetTooltip(tooltip);
	end,

	-- Set the Label
	label = LCB_DESC,
})
